package com.breadenglish.cms.api.app.sys.service;

import com.breadenglish.cms.api.app.domain.db.Audio;
import com.breadenglish.cms.api.app.domain.model.ResultData;
import com.breadenglish.cms.api.app.domain.query.AudioQuery;

/**
 * 作者: guo yao
 * 日期: 2016年01月05日
 * 时间: 下午13:32
 */
public interface VideoService {

    /**
     * 插入音频信息
     *
     * @param audio
     * @return
     * @throws Throwable
     */
    public void insertVideo(Audio audio,String savePath) throws Throwable;

    /**
     * 插入音频信息
     *
     * @param audio
     * @return
     * @throws Throwable
     */
    public void updateVideo(Audio audio,String savePath) throws Throwable;

    /**
     * 批量删除
     *
     * @param videoIds
     * @throws Throwable
     */
    public void deleteVideo(String videoIds) throws Throwable;


    /**
     * 查询音频
     *
     * @param audioId
     * @return
     * @throws Throwable
     */
    public AudioQuery queryAudioById(Long audioId) throws Throwable;
}
